package org.yiqixue.accounts.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;

// Transaction 的 DTO 类，用于在服务层和控制器层之间传输数据
@Data
@Schema(
        name = "Transaction",
        description = "Schema to hold Transaction information"
)
public class TransactionDto {

    // 交易 ID
    @Schema(description = "Transaction ID", example = "1")
    private Long transactionId;

    // 账户 ID
    @Schema(description = "Account Number", example = "3454433243")
    private Long accountNumber;

    // 交易金额
    @Schema(description = "Transaction Amount", example = "1000.00")
    private double amount;

    // 交易日期
    @Schema(description = "Transaction Date", example = "2024-01-01")
    private LocalDate transactionDate;

    // 交易说明
    @Schema(description = "Transaction Description", example = "Deposit")
    private String description;

    // 交易状态
    @Schema(description = "Transaction Status", example = "Completed")
    private String status;

    // 交易类型
    @Schema(description = "Transaction Type", example = "Deposit")
    private String type;
}
